WooCommerce\PayPalCommerce\Button\Assets\SmartButton D

Total Complexity 190
Dependencies 19
Dependents 0
Total lines 1,077
Lines of code 676
Logical lines of code 240
Comment lines 269
Methods 31
Properties 14

Methods 31

Method Rating Maintainability Complexity Lines of code
message_values()
C
35 28 82
url()
B
41 23 46
render_wrapper()
B
38 18 70
localize_script()
A
34 10 95
load_button_component()
A
50 13 34
render_message_wrapper_registrar()
A
44 10 53
render_button_wrapper_registrar()
A
44 10 51
enqueue()
A
48 11 36
context()
S
58 7 16
style_for_context()
S
54 6 20
dcc_is_enabled()
S
57 6 19
button_renderer()
S
57 6 17
can_save_vault_token()
S
66 5 9
can_render_dcc()
S
74 5 4
components()
S
62 4 13
has_subscriptions()
S
63 4 12
dcc_renderer()
S
59 3 14
get_3ds_contingency()
S
67 3 9
payerData()
S
68 3 7
normalize_height()
S
68 3 9
__construct()
S
58 1 16
bn_code_for_context()
S
74 2 4
bn_codes()
S
68 1 8
attributes()
S
74 1 5
message_renderer()
S
82 1 3
checkout_button_renderer_hook()
S
79 1 3
checkout_dcc_button_renderer_hook()
S
79 1 3
pay_order_renderer_hook()
S
79 1 3
proceed_to_checkout_button_renderer_hook()
S
72 1 6
mini_cart_button_renderer_hook()
S
72 1 6
single_product_renderer_hook()
S
79 1 3